<?php
/**
 * Created by PhpStorm.
 * User: 10037
 * Date: 2022/6/12
 * Time: 23:30
 */

namespace app\admin\model;


use think\Model;

class logtable extends Model
{
    protected $pk='id';

    public function addLog($message){
        $data['logName']=$message;
        $data['logTime']=date('Y-m-d h:i:s',time());
        $this->save($data);
    }

    public function selectAllLog($page){
    return $this->page($page,10)->select();
}
    public function selectAllLogTime($page,$like){
        return $this->where('logTime','>',$like)->page($page,10)->select();
    }
}